package com.guqiao.mvvmlib.viewmodel;

import android.os.Bundle;
import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;
import androidx.lifecycle.ViewModelProviders;

/**
 * @author jiangyao
 * @date 2019-07-19 22:52
 * @des
 */
public class BaseActivity extends AppCompatActivity {
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        BaseViewModel model = ViewModelProviders.of(this).get(BaseViewModel.class);
        model.getData().observe(this, data -> {

        });
    }
}
